<template>
	<view class="wp">
		<view class="user-section">
			<view class="bg"></view>
			<view class="member">
				<image class="logo" :src="info.member.avatar" mode="" @click="$navTo('/pages/user/userinfo')"></image>
				<view class="m_info">
					<view class="name">
						<text @click="$navTo('/pages/user/userinfo')">{{info.member.nickname}}</text>
						<view class="biao">
							<image src="/static/user/biao.png" mode="widthFix"></image>
							<text>{{levelCurrName}}</text>
						</view>
						<!-- <view class="vip_level" v-if="info.levelname[1]">
							<image src="/static/user/biao.png"></image>
							<view>{{info.levelname[1]}}</view>
						</view> -->
					</view>
					<view class="m_id">我的ID：{{info.member.id}}</view> 
					<view class="m_id">
						推荐人：{{info.referrer.realname||'无推荐人'}}
						<image @click="phoneCall(info.referrer.mobile)" v-if="info.referrer.mobile&&info.referrer.mobile.length>0" class="reco_img" src="/static/user/dianhua.png"></image>
					</view>
					<view class="m_id">推荐人ID：{{info.referrer.id||'无推荐人'}}</view> 
					<!-- <view class="m_id" v-if="info.levelname['1']">VIP剩余：{{info.lastVipTime}}天</view> -->
					<!-- <view class="m_tag">
						<block v-for="(item,idx) in info.levelname">
							<text class="item" :class="{'item1':idx==0, 'item2':idx==1, 'item3':idx==2, 'item4':idx==3, 'item5':idx==4, 'item6':idx==5,'item7':idx==6 , 'item8':idx==7 , 'item9':idx==8 , 'item8':idx==9}"
							 v-if="idx!=1&&idx!=0" :key="idx">{{item}}</text>
						</block>
					</view> -->
					<!-- <view v-if="info.levelname['0']">
						<text>会员权益：享受会员折扣</text>
					</view> -->
				</view>
				<image src="/static/user/kefu.png" @click="openKefu" mode="widthFix" class="kefu"></image>
			</view>
			<view class="savings">
				<view class="sav_item" @click="navOrder(1)">
					<view class="sav_num">{{info.totalprice}}</view>
					<view>累积消费</view>
					<view style="color: transparent;">（元）</view>
				</view>
				<view class="sav_line"></view>
				<view class="sav_item" @click="toMiCoin">
					<view class="sav_num">{{info.discontsprice}}</view>
					<view>可用米币</view>
					<view>({{(Number(thawcredit)).toFixed(2)}}米币冻结中)</view>
				</view>
				<view class="sav_line"></view>
				<!-- <view class="sav_item" @click="$navTo('/pages/user/residueIntegral')">
					<view class="sav_num">0</view>
					<view>剩余积分</view>
				</view>
				<view class="sav_line"></view> -->
				<view class="sav_item" @click="$navTo('../userservice/withdrawal')">
					<view class="sav_num">{{partnerInfo.usemoney}}</view>
					<view>钱包余额</view>
					<view style="color: transparent;">（元）</view>
				</view>
			</view>
			<!-- <block v-if="info.levelname[2]||info.levelname[3]||info.levelname[4]||info.levelname[5]||info.levelname[6]||info.levelname[7]||info.levelname[8]||info.levelname[9]"></block> -->
			<!-- <view class="vip_open" style="background-image: url('https://img.jinghushi.com/images/9/2024/06/f671OCl8c1abACjCfliPilLaP6C6I7.png');">
				<view class="vip_open_left">
					<image src="/static/vip_open.png" mode="heightFix"></image>
					<view>升级团长，享超多专属优惠！</view>
				</view>
				<view class="vip_open_btn" @click="$navTo('/pages/user/vip')" v-if="info.levelname[1]">去续费</view>
				<view class="vip_open_btn" @click="$navTo('/pages/user/vip')" v-else>立即升级</view>
			</view> -->
			<view class="myorder">
				<view class="top">
					<view>我的订单</view>
					<view class="my_more" @click="$navTo('/pages/index/order')">全部订单></view>
				</view>
				<view class="my_list">
					<view class="my_item" @click="navOrder(0)">
						<view class="my_img">
							<image src="/static/user/myorder1.png" mode="widthFix"></image>
							<view class="round" v-if="waitOrder.zznum!=0"></view>
						</view>
						<view>线下买单</view>
					</view>
					<view class="my_item" @click="navOrder(2)">
						<view class="my_img">
							<image src="/static/user/myorder2.png" mode="widthFix"></image>
							<view class="round" v-if="waitOrder.tgnum!=0"></view>
						</view>
						<view>团购订单</view>
					</view>
					<view class="my_item" @click="navOrder(1)">
						<view class="my_img">
							<image src="/static/user/myorder3.png" mode="widthFix"></image>
							<view class="round" v-if="waitOrder.shopnum!=0"></view>
						</view>
						<view>商城订单</view>
					</view>
					<view class="my_item" @click="navOrder(4)">
						<view class="my_img">
							<image src="/static/user/mem/paidui.png" mode="widthFix"></image>
						</view>
						<view>排队明细</view>
					</view>
				</view>
			</view>
			<!-- <view class="bind_phone"> -->
			<view class="bind_phone" v-if="phoneMember.member.mobile==''">
				<view>为更好地体验消费服务，请立即绑定手机号</view>
				<button class="l_w_login" open-type="getPhoneNumber" @getphonenumber="getUserProfile">一键绑定手机号</button>
			</view>
		</view>
		<view class="notice_bar">
			<image src="/static/user/notice.png" mode="widthFix"></image>
			<view class="no_bar">
				<uni-notice-bar :speed="14" scrollable :text="notice" backgroundColor="#F8F1DA"
					:showStyle="true" color="#5A5233" />
			</view>
		</view>
		<view class="c_body">
			<!-- 我的 -->
			<view class="user_item">
				<view class="title">
					<text class="name">我的</text>
					<!-- <view class="more bind_phone" v-if="phoneMember.member.mobile==''">绑定手机享受更多优惠 <button class="l_w_login" open-type="getPhoneNumber" @getphonenumber="getUserProfile">去绑定 ></button></view> -->
				</view>
				<view class="my_menu">
					<view class="my_list">
						<view class="list_item" @click="navTo('/pages/userservice/myteam')">
							<view class="user_img">
								<image src="/static/user/mem/huoban.png" mode="widthFix"></image>
							</view>
							<view class="name">我的好友</view>
						</view>
						<view class="list_item" @click="navTo('/pages/agent/QRcode')">
							<view class="user_img">
								<image src="/static/user/mem/yaoqing.png" mode="widthFix"></image>
							</view>
							<view class="name">推广海报</view>
						</view>
						<!-- #ifndef H5 -->
						<view class="list_item" @click="sao">
							<view class="user_img">
								<image src="/static/user/mem/sao.png" mode="widthFix"></image>
							</view>
							<view class="name">扫一扫</view>
						</view>
						<!-- #endif -->
						<!-- <view class="list_item" @click="navTo('/pages/user/card')">
							<view class="user_img">
								<image src="/static/user/mem/card.png" mode="widthFix"></image>
							</view>
							<view class="name">我的卡包</view>
						</view> -->
						<view class="list_item" @click="$navTo('../userservice/withdrawal')">
							<view class="user_img">
								<image src="/static/user/mem/qianbao.png" mode="widthFix"></image>
							</view>
							<view class="name">我的钱包</view>
						</view>
						<view class="list_item" @click="navTo('/pages/user/history')">
							<view class="user_img">
								<image src="/static/user/mem/zuji.png" mode="widthFix"></image>
							</view>
							<view class="name">浏览记录</view>
						</view>
						<view class="list_item" @click="navTo('/pages/userservice/mycollection')">
							<view class="user_img">
								<image src="/static/user/mem/shoucang.png" mode="widthFix"></image>
							</view>
							<view class="name">收藏</view>
						</view>
						<view class="list_item" @click="navTo('/pages/address/address')">
							<view class="user_img">
								<image src="/static/user/mem/shouhuodizhi.png" mode="widthFix"></image>
							</view>
							<view class="name">收货地址</view>
						</view>
						<!-- <view class="list_item" @click="navTo('/pages/user/promotion')">
							<view class="user_img">
								<image src="/static/user/mem/tuiguang.png" mode="widthFix"></image>
								<view class="list_tip">赚钱</view>
							</view>
							<view class="name">成为团长</view>
						</view> -->
						<!-- <view class="list_item" @click="navTo('/pages/user/lineUp')">
							<view class="user_img">
								<image src="/static/user/mem/paidui.png" mode="widthFix"></image>
							</view>
							<view class="name">排队明细</view>
						</view>	 -->
						<!-- <view class="list_item" v-if="info.issuplist||info.member.id==12032" @click="navTo('/pages/index/index')">
							<view class="user_img">
								<image src="/static/user/mem/shangpuguanli.png" mode="widthFix"></image>
							</view>
							<view class="name">本地生活</view>
						</view> -->
						<view class="list_item" v-if="(info.openSupplier==1&&(info.levelname[5]||info.levelname[6]||info.levelname[9]))||info.member.id==12032" @click="navTo('/pages/user/settle')">
							<view class="user_img">
								<image src="/static/user/mem/shangjiaruzhu.png" mode="widthFix"></image>
							</view>
							<view class="name">商家入驻</view>
						</view>
						<!-- <view class="list_item" v-if="info.isopenmoney==1" @click="$navTo('../userservice/finance')">
							<view class="user_img">
								<view class="round" v-if="info.moneynum==1"></view>
								<image src="/static/user/mem/caiwu.png" mode="widthFix"></image>
							</view>
							<view class="name">财务</view>
						</view>
						<view class="list_item" v-if="info.isopenorderrefund==1" @click="$navTo('../userservice/afterSale')">
							<view class="user_img">
								<view class="round" v-if="info.orderRefundnum>0"></view>
								<image src="/static/user/mem/caiwu.png" mode="widthFix"></image>
							</view>
							<view class="name">售后</view>
						</view>
						<view class="list_item" @click="navTo('/pages/user/giftData')">
							<view class="user_img">
								<image src="/static/user/mem/cwgl.png" mode="widthFix"></image>
							</view>
							<view class="name">礼包数据</view>
						</view> -->
						<view class="list_item" v-if="info.ispickup==1" @click="$navTo('../business/supermarketOrderWriteOff')">
							<view class="user_img">
								<image src="/static/user/mem/txgl.png" mode="widthFix"></image>
							</view>
							<view class="name">核销</view>
						</view>
						<!-- <view class="list_item" v-if="info.member.id==12040||info.member.id==9999||info.levelname[5]||info.levelname[6]" @click="navTo('/pages/user/transfer')">
							<view class="user_img">
								<image src="/static/user/mem/shujufenxi.png" mode="widthFix"></image>
							</view>
							<view class="name">划拨</view>
						</view> -->
						<view class="list_item" v-if="info.member.id==12032||info.member.id==12040||info.member.id==9999" @click="navTo('/pages/user/transferYy')">
							<view class="user_img">
								<image src="/static/user/mem/shujufenxi.png" mode="widthFix"></image>
							</view>
							<view class="name">运营划拨</view>
						</view>
						<view class="list_item" v-if="info.member.id==12032||info.ispd==1" @click="navTo('/pages/user/yyBilling')">
							<view class="user_img">
								<image src="/static/user/mem/paidui.png" mode="widthFix"></image>
							</view>
							<view class="name">运营开单</view>
						</view>
						<view class="list_item" @click="navTo('/pages/source/source')">
							<view class="user_img">
								<image src="/static/user/mem/sucai.png"></image>
							</view>
							<view class="name">营销素材</view>
						</view>
						<view class="list_item" @click="navTo('/pages/user/giftData')" v-if="info.isgift==1">
							<view class="user_img">
								<image src="/static/user/mem/cwgl.png" mode="widthFix"></image>
							</view>
							<view class="name">礼包数据</view>
						</view>
						<view class="list_item" v-if="info.member.id==12032||info.isMaterial==1" @click="navTo('/pages/source/addSource')">
							<view class="user_img">
								<image src="/static/user/mem/shangjiaruzhu.png"></image>
							</view>
							<view class="name">发布素材</view>
						</view>
						<view class="list_item" @click="navTo('/pages/user/createhb')">
							<view class="user_img">
								<image src="/static/user/mem/hongbao.png"></image>
							</view>
							<view class="name">发红包</view>
						</view>
						<view class="list_item" @click="logout">
							<view class="user_img">
								<image src="/static/user/mem/qiehuan.png"></image>
							</view>
							<view class="name">切换账号</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 我的门店-商家 -->
			<view class="user_item" v-if="info.levelname['2']">
				<view class="title">
					<text class="name">我的门店<text style="color:red;font-size: 26rpx;" v-if="info.ischecked!=1">（该店已关闭，正在审批中）</text></text>
					<view class="more flex_align_center" @click="openPhone(supplierInfo.salephone,supplierInfo.referephone)">招商经理<image src="/static/user/phone.png" mode="widthFix" style="width: 26rpx;"></image></view>
				</view>
				<view class="my_menu">
					<view class="shop_list">
						<view class="list_item" v-if="info.isshopman==1" @click="navTo('/pages/business/personalstores')">
							<view class="user_img">
								<image src="/static/user/mem/shangpuguanli.png" mode="widthFix"></image>
							</view>
							<view class="name">门店设置</view>
						</view>
						<view class="list_item" @click="$navTo('/pages/business/shoplistw?uid='+supplierMain.uid)">
							<view class="user_img">
								<image src="/static/user/myorder2.png" mode="widthFix"></image>
							</view>
							<view class="name">团购商品</view>
						</view>
						<!-- <view class="list_item" @click="navTo('/pages/user/custom')">
							<view class="user_img">
								<image src="/static/user/mem/kehuguanli.png" style="width: 26rpx;" mode="widthFix"></image>
							</view>
							<view class="name">客户管理</view>
						</view>
						<view class="list_item" @click="Popup">
							<view class="user_img">
								<image src="/static/user/mem/shujufenxi.png" mode="widthFix"></image>
							</view>
							<view class="name" >数据分析</view>
						</view> -->
						<view class="list_item" @click="navTo('/pages/business/collection')">
							<view class="user_img">
								<image src="/static/user/mem/shouKuan.png" mode="widthFix"></image>
							</view>
							<view class="name">收款码</view>
						</view>
						<view class="list_item">
							<view class="number">
								<view>{{supplierInfo.shownum}}次</view>
								<view>(当日)</view>
							</view>
							<view class="name">店铺展示</view>
						</view>
						<view class="list_item">
							<view class="number">
								<view>{{supplierInfo.brownum}}人</view>
								<view>(当日)</view>
							</view>
							<view class="name">进店人数</view>
						</view>
						<!-- <view class="list_item" @click="navTo('/pages/user/prestore')">
							<view class="number color_number">
								<view style="font-size: 28upx;">{{supplierInfo.usemoney}}</view>
								<view>(用户)</view>
							</view>
							<view class="name">可用余额</view>
						</view> -->
						<view class="list_tit">到店买单</view>
						
						<view class="list_item" @click="navTo('/pages/business/collectionrecord')">
							<view class="number">
								<view>{{supplierInfo.ordernum}}笔</view>
								<view>(当日核销)</view>
							</view>
							<view class="name">收款笔数</view>
						</view>
						<view class="list_item" @click="navTo('/pages/business/collectionrecord')">
							<view class="number color_number">
								<view style="font-size: 26upx;">{{supplierInfo.salemoney}}</view>
								<view>(当日)</view>
							</view>
							<view class="name">营业额</view>
						</view>
						<view class="list_tit">团购销售</view>
						<view class="list_item" @click="navTo('../business/orderwrite?status=1')">
							<view class="number">
								<view>{{supplierInfo.nochecknum}}笔</view>
								<view>(当前)</view>
							</view>
							<view class="name">待核销</view>
						</view>
						<view class="list_item" @click="navTo('../business/orderwrite?status=-1')">
							<view class="number">
								<view>{{supplierInfo.refundnum}}笔</view>
								<view>(当前)</view>
							</view>
							<view class="name">已退款</view>
						</view>
						<view class="list_item" @click="navTo('../business/orderwrite?status=3')">
							<view class="number">
								<view>{{supplierInfo.finishnum}}笔</view>
								<view>(累计)</view>
							</view>
							<view class="name">已核销</view>
						</view>
						<view class="list_item" @click="navTo('../business/reservation')">
							<view class="number">
								<view>{{reservationNum}}个</view>
								<view>(当前)</view>
							</view>
							<view class="name">预约申请</view>
						</view>
						<view class="list_item" @click="navTo('/pages/business/collectionrecordgroup')">
							<view class="number color_number">
								<view style="font-size: 26upx;">{{supplierInfo.grouprealprice}}</view>
								<view>(当日)</view>
							</view>
							<view class="name">团购实收</view>
						</view>
					</view>
				</view>
			</view>

			<!-- 推广数据 -->
			<view class="user_item" v-if="info.levelname['3'] || info.levelname['4'] || info.levelname['5'] || info.levelname['6'] || info.levelname['7'] || info.levelname['8'] || info.levelname['9']">
				<view class="title">
					<text class="name">团队数据</text>
					<!-- <text class="more" @click="$navTo('/pages/user/addgroup')">加入培训群 ></text> -->
				</view>
				<view class="my_menu" >
					<view class="my_list">
						<view class="list_item"  @click="navTo('/pages/userservice/myteam')">
							<view class="number">
								<view>{{partnerInfo.all}}人</view>
								<view>(累计)</view>
							</view>
							<view class="name">团队人数</view>
						</view>
						<view class="list_item" @click="navTo('/pages/userservice/myteam')">
							<view class="number">
								<view>{{partnerInfo.partnernum}}人</view>
								<view>(累计)</view>
							</view>
							<view class="name">团队长</view>
						</view>
						<view class="list_item" @click="navTo('/pages/userservice/myteam')">
							<view class="number">
								<view>{{partnerInfo.ynewnum}}人</view>
								<view>(团队成员)</view>
							</view>
							<view class="name">昨日新增</view>
						</view>
						<view class="list_item" @click="navTo('/pages/userservice/myteam')">
							<view class="number">
								<view>{{partnerInfo.newnum}}人</view>
								<view>(团队成员)</view>
							</view>
							<view class="name">今日新增</view>
						</view>
						<!-- <view class="list_item" @click="$navTo('/pages/user/recommended')">
							<view class="number">
								<view>{{partnerInfo.refsupnum}}家</view>
								<view>(当前)</view>
							</view>
							<view class="name">我推的店</view>
						</view> -->
						
						<view class="list_item">
							<view class="number color_number">
								<view>{{partnerInfo.price}}</view>
								<view>(直推间推)</view>
							</view>
							<view class="name">今日实付</view>
						</view>
						<view class="list_item" @click="$navTo('/pages/agent/Dividendorder?id=4')">
							<view class="number color_number">
								<view>{{partnerInfo.curmoeny}}</view>
								<view>(元)</view>
							</view>
							<view class="name">今日佣金</view>
						</view>

						<view class="list_item" @click="$navTo('/pages/agent/Dividendorder?id=5')">
							<view class="number color_number">
								<view>{{partnerInfo.waitmoney}}</view>
								<view>(待收货)</view>
							</view>
							<view class="name">待结算</view>
						</view>

						<view class="list_item" @click="$navTo('/pages/agent/Dividendorder?id=4')">
							<view class="number color_number">
								<view>{{partnerInfo.allmoney}}</view>
								<view>(累计)</view>
							</view>
							<view class="name">已结算</view>
						</view>
						<view class="list_item" @click="$navTo('/pages/user/transferListDetail')">
							<image src="/static/user/mem/shujufenxi.png"></image>
							<view class="name">划拨明细</view>
						</view>
						<view class="list_item" @click="$navTo('/pages/userservice/partnerLineup')">
							<image src="/static/user/mem/paidui.png"></image>
							<view class="name">团队补贴</view>
						</view>
						<!-- <view class="list_item" @click="$navTo('/pages/user/recommended')">
							<image src="/static/user/mem/shangpuguanli.png"></image>
							<view class="name">我推的店</view>
						</view> -->
						<!-- <view class="list_item" v-if="info.levelname['3']||info.levelname['9']" @click="$navTo('/pages/agent/principal')">
							<image src="/static/user/mem/benjin.png"></image>
							<view class="name">收回本金</view>
						</view>
						<view class="list_item" @click="$navTo('/pages/userservice/giftPerformance')">
							<image src="/static/user/mem/cwgl.png"></image>
							<view class="name">礼包业绩</view>
						</view> -->
						<!-- <view class="list_item" @click="$navTo('/pages/user/dlpersonnel')">
							<image src="/static/user/mem/renyuanguanli.png"></image>
							<view class="name">人员管理</view>
						</view> -->
					</view>
				</view>
			</view>
			<!-- 合伙人签约门店 -->
			<view class="my_menu" v-if="info.levelname['5']">
				<view class="title">
					<text class="name">合伙人业务</text>
					<!-- <text class="more" @click="$navTo('/pages/user/SetGroupcode')">上传二维码 ></text> -->
				</view>
				<view class="shop_list">
					<!-- <view class="list_item" @click="navTo('/pages/user/signing')"> 原业务经理跳转签约门店	  -->
					<!-- <view class="list_item" @click="navTo('/pages/user/transfer')">
						<image src="/static/user/mem/shujufenxi.png"></image>
						<view class="name">划拨</view>
					</view> -->
					<view class="list_item" @click="navTo('/pages/user/dlmanageshop')"> 
						<image src="/static/user/mem/shangpuguanli.png"></image>
						<view class="name">已签门店</view>
					</view>
					<view class="list_item" @click="navTo('/pages/user/examine')">
						<image src="/static/user/mem/daishenhe.png"></image>
						<view class="name">待审核</view>
						<uni-badge :text="Number(salerInfo.waitchecknum)" type="primary" :offset="[-10,-42]"
							absolute="rightTop" :customStyle="{background: '#8405dc'}" />
					</view>
					<!-- <view class="list_item" @click="navTo('/pages/user/signing?usemoney>=15')">
						<view class="number">
							<view>{{salerInfo.usemoney}}</view>
							<view>(当日)</view>
						</view>
						<view class="name">预存余额</view>
					</view> -->
					<!-- <view class="list_item">
						<view class="number">
							<view>{{salerInfo.supmoney}}</view>
							<view>(当日)</view>
						</view>
						<view class="name">预存消费</view>
					</view> -->
					<!-- <view class="list_item">
						<view class="number color_number">
							<view>{{salerInfo.saleprice}}</view>
							<view>(当日实付)</view>
						</view>
						<view class="name">营业额</view>
					</view> -->
					<view class="list_item" @click="$navTo('/pages/user/dlmanageshop')">
						<view class="number">
							<view>{{salerInfo.supnum}}家</view>
							<view>(累计)</view>
						</view>
						<view class="name">门店数量</view>
					</view>
					<view class="list_item" @click="navTo('/pages/user/signing?price=0')">
						<view class="number">
							<view>{{salerInfo.nopaynum}}家</view>
							<view>(无交易门店)</view>
						</view>
						<view class="name">门店预警</view>
					</view>
					<view class="list_item">
						<view class="number">
							<view>{{salerInfo.brownum}}人</view>
							<view>(当日)</view>
						</view>
						<view class="name">店铺访客</view>
					</view>
					<view class="list_item">
						<view class="number">
							<view>{{salerInfo.ordernum}}笔</view>
							<view>(当日)</view>
						</view>
						<view class="name">支付笔数</view>
					</view>
					<!-- <view class="list_item" @click="$navTo('/pages/groupmenu/groupList')">
						<image src="/static/user/mem/mdgl.png"></image>
						<view class="name">集团设置</view>
					</view> -->
					<view class="list_item" @click="$navTo('/pages/business/developStores')">
						<image src="/static/user/mem/mdgl.png"></image>
						<view class="name">开发门店</view>
					</view>
				</view>
			</view>

			<!-- 运营中心 -->
			<view class="user_item" v-if="info.levelname['6']||info.levelname['9']">
				<view class="title">
					<text class="name">运营中心业务</text>
				</view>
				<view class="my_menu" >
					<view class="shop_list">
						<view class="list_item" @click="$navTo('/pages/user/dlmanageshop')">
							<image src="/static/user/mem/shangpuguanli.png"></image>
							<view class="name">已签门店</view>
						</view>
						<view class="list_item" @click="$navTo('/pages/user/dlpersonnel')">
							<image src="/static/user/mem/renyuanguanli.png"></image>
							<view class="name">合伙人</view>
						</view>
						<view class="list_item" @click="$navTo('/pages/user/dlapprove')">
							<image src="/static/user/mem/daishenhe.png"></image>
							<view class="name">门店审批</view>
							<uni-badge :text="Number(areagentInfo.waitchecknum)" type="primary" :offset="[-10,-42]"
								absolute="rightTop" :customStyle="{background: '#8405dc'}" />
						</view>
						<view class="list_item" @click="navTo('/pages/user/transfer')">
							<image src="/static/user/mem/shujufenxi.png" mode="widthFix"></image>
							<view class="name">划拨</view>
						</view>
						<view class="list_item" v-if="info.isflowcard==1" @click="navTo('/pages/userservice/goodsExamine')">
							<view class="user_img">
								<image src="/static/user/myorder2.png"></image>
							</view>
							<view class="name">团购审核</view>
						</view>
						<!-- <view class="list_item">
							<image src="/static/user/mem/shujufenxi.png"></image>
							<view class="name">数据分析</view>
						</view> -->
						<!-- <view class="list_item" @click="$navTo('/pages/user/shoplist')">
							<image src="/static/user/mem/yufuguanli.png"></image>
							<view class="name">充值管理</view>
						</view> -->
						<view class="list_item">
							<view class="number">
								<view>{{areagentInfo.supnum}}家</view>
								<view>(累计)</view>
							</view>
							<view class="name" @click="navTo('/pages/user/dlmanageshop')">门店数量</view>
						</view>
						<view class="list_item">
							<view class="number">
								<view>{{areagentInfo.brownum}}人</view>
								<view>(当日)</view>
							</view>
							<view class="name">本地访客</view>
						</view>
						<view class="list_item">
							<view class="number">
								<view>{{areagentInfo.ordernum}}人</view>
								<view>(当日)</view>
							</view>
							<view class="name">消费人数</view>
						</view>
						<!-- <view class="list_item">
							<view class="number color_number">
								<view>{{areagentInfo.usemoney}}</view>
								<view>(当日)</view>
							</view>
							<view class="name">预存余额</view>
						</view> -->
						<view class="list_item">
							<view class="number color_number">
								<view>{{areagentInfo.saleprice}}</view>
								<view>(当日营收)</view>
							</view>
							<view class="name">营业额</view>
						</view>
						<!-- <view class="list_item" @click="$navTo('/pages/business/supermarket')">
							<image src="/static/user/mem/mdgl.png"></image>
							<view class="name">本地超市</view>
						</view> -->
						<view class="list_item" @click="$navTo('/pages/business/developStores')">
							<image src="/static/user/mem/mdgl.png"></image>
							<view class="name">开发门店</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 运营公司 -->
			<view class="user_item" v-if="info.levelname['8']">
				<view class="title">
					<text class="name">运营公司</text>
				</view>
				<view class="my_menu">
					<view class="shop_list">
						<view class="list_item" @click="$navTo('/pages/user/dlmanageshop')">
							<image src="/static/user/mem/shangpuguanli.png"></image>
							<view class="name">已签门店</view>
						</view>
						<view class="list_item" @click="$navTo('/pages/user/dlpersonnel')">
							<image src="/static/user/mem/renyuanguanli.png"></image>
							<view class="name">直推人员</view>
						</view>
						<view class="list_item">
							<image src="/static/user/mem/shujufenxi.png"></image>
							<view class="name">数据分析</view>
						</view>
						<view class="list_item">
							<view class="number">
								<view>{{areagentInfo.supnum}}家</view>
								<view>(累计)</view>
							</view>
							<view class="name" @click="navTo('/pages/user/dlmanageshop')">门店数量</view>
						</view>
						<view class="list_item">
							<view class="number">
								<view>{{areagentInfo.brownum}}人</view>
								<view>(当日)</view>
							</view>
							<view class="name">本地访客</view>
						</view>
						<view class="list_item">
							<view class="number">
								<view>{{areagentInfo.ordernum}}人</view>
								<view>(当日)</view>
							</view>
							<view class="name">消费人数</view>
						</view>
						<view class="list_item">
							<view class="number color_number">
								<view>{{areagentInfo.usemoney}}</view>
								<view>(当日)</view>
							</view>
							<view class="name">预存余额</view>
						</view>
						<view class="list_item">
							<view class="number color_number">
								<view>{{areagentInfo.saleprice}}</view>
								<view>(当日营收)</view>
							</view>
							<view class="name">营业额</view>
						</view>
						
					</view>
				</view>
			</view>
			<!-- 公司数据 -->
			<view class="user_item" v-if="info.iscommany==1||info.member.id==12032||info.member.id==12055">
				<view class="title">
					<text class="name">公司数据</text>
				</view>
				<view class="my_menu" >
					<view class="shop_list">
						<view class="list_item" @click="$navTo('/pages/user/companyApproval')">
							<image src="/static/user/mem/daishenhe.png"></image>
							<view class="name">门店审批</view>
							<uni-badge :text="Number(areagentInfo.waitchecknum)" type="primary" :offset="[-10,-42]"
								absolute="rightTop" :customStyle="{background: '#8405dc'}" />
						</view>
						<view class="list_item" @click="$navTo('../userservice/finance')">
							<view class="user_img">
								<view class="round" v-if="info.moneynum==1"></view>
								<image src="/static/user/mem/caiwu.png" mode="widthFix"></image>
							</view>
							<view class="name">财务</view>
						</view>
						<view class="list_item" @click="$navTo('../userservice/afterSale')">
							<view class="user_img">
								<view class="round" v-if="info.orderRefundnum>0"></view>
								<image src="/static/user/mem/caiwu.png" mode="widthFix"></image>
							</view>
							<view class="name">售后</view>
						</view>
						<view class="list_item" @click="navTo('/pages/user/giftData')">
							<view class="user_img">
								<image src="/static/user/mem/cwgl.png" mode="widthFix"></image>
							</view>
							<view class="name">礼包数据</view>
						</view>
						<view class="list_item" @click="navTo('/pages/userservice/operationalData')">
							<view class="user_img">
								<image src="/static/user/mem/yysj.png" mode="widthFix"></image>
							</view>
							<view class="name">运营数据</view>
						</view>
						<view class="list_item" @click="navTo('/pages/userservice/orderSearch')">
							<image src="/static/user/mem/ss.png"></image>
							<view class="name">订单查询</view>
						</view>
						<view class="list_item" @click="navTo('/pages/userservice/orderAll')">
							<image src="/static/user/myorder4.png"></image>
							<view class="name">实时订单</view>
						</view>
						<view class="list_item" v-if="info.isflowcard==1" @click="navTo('/pages/userservice/goodsExamine')">
							<image src="/static/user/myorder2.png"></image>
							<view class="name">团购审核</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 权限管理 -->
			<view class="user_item" v-if="info.ispower==1">
				<view class="title">
					<text class="name">权限管理</text>
				</view>
				<view class="my_menu" >
					<view class="shop_list">
						<view class="list_item" @click="navTo('/pages/user/accountSwitch')">
							<image src="/static/user/mem/qiehuan.png"></image>
							<view class="name">账号切换</view>
						</view>
						<view class="list_item">
							<image src="/static/user/mem/xiugai.png"></image>
							<view class="name">修改信息</view>
						</view>
						<!-- <view class="list_item" @click="navTo('/pages/userservice/operationalData')">
							<image src="/static/user/mem/yysj.png"></image>
							<view class="name">运营数据</view>
						</view> -->
					</view>
				</view>
			</view>
			<!-- 集团管理 -->
			<view class="user_item" v-if="info.isgroup==1">
				<view class="title">
					<text class="name">集团管理</text>
				</view>
				<view class="my_menu">
					<view class="my_list">
						<view class="list_item" @click="navTo('/pages/groupmenu/shopmanagement')" v-if="info.groupList.merch==1">
							<view class="user_img">
								<image src="/static/user/mem/mdgl.png" mode="widthFix"></image>
							</view>
							<view class="name">门店管理</view>
						</view>
						<view class="list_item" @click="navTo('/pages/groupmenu/withdrawalmanagement')" v-if="info.groupList.pay==1">
							<view class="user_img">
								<image src="/static/user/mem/txgl.png" mode="widthFix"></image>
							</view>
							<view class="name">提现管理</view>
						</view>
						<view class="list_item" @click="navTo('/pages/groupmenu/financialmanagement')" v-if="info.groupList.money==1">
							<view class="user_img">
								<image src="/static/user/mem/cwgl.png" mode="widthFix"></image>
							</view>
							<view class="name">财务管理</view>
						</view>
						<view class="list_item" @click="navTo('/pages/groupmenu/recharge')" v-if="info.groupList.rechange==1">
							<view class="user_img">
								<image src="/static/user/mem/czgl.png" mode="widthFix"></image>
							</view>
							<view class="name">充值管理</view>
						</view>
						<view class="list_item" @click="navTo('/pages/groupmenu/shellmanagement')" v-if="info.groupList.credit==1">
							<view class="user_img">
								<image src="/static/user/mem/czgl.png" mode="widthFix"></image>
							</view>
							<view class="name">米币管理</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 其它 -->
			<view class="user_item">
				<view class="title">
					<text class="name">其他</text>
				</view>
				<view class="my_menu">
					<view class="shop_list">
						<view class="list_item" @click="navTo('/pages/other/aboutus')">
							<view class="user_img">
								<image src="/static/user/mem/guanyuwomen.png" mode="widthFix"></image>
							</view>
							<view class="name">关于我们</view>
						</view>
						<view class="list_item" @click="navTo('/pages/other/noviceguide')">
							<view class="user_img">
								<image src="/static/user/mem/xinshouzhinan.png" mode="widthFix"></image>
							</view>
							<view class="name">新手指南</view>
						</view>
						<view class="list_item" @click="navTo('/pages/other/college')" v-if="info.levelname['5'] || info.levelname['6']">
							<view class="user_img">
								<image src="/static/user/mem/peixun.png" mode="widthFix"></image>
							</view>
							<view class="name">推广培训</view>
						</view>
						<view class="list_item" @click="navTo('/pages/user/set')">
							<view class="user_img">
								<image src="/static/user/mem/sett.png" mode="widthFix"></image>
							</view>
							<view class="name">设置</view>
						</view>
						<!-- 					<view class="list_item" @click="navTo('/pages/other/joinin')">
							<image src="/static/user/mem/jiameng.png"></image>
							<view class="name">加盟</view>
						</view> -->
						<!-- 					<view class="list_item" @click="navTo('/pages/other/feedback')">
							<image src="/static/user/mem/yijiang.png"></image>
							<view class="name">投诉</view>
						</view> -->
					</view>
				</view>
			</view>
		</view>
		<uni-popup ref="popup" :is-mask-click="false">
			<view class="empower">
				<image src="/static/user/infobg.png" class="e_bg"></image>
				<view class="e_info">
					<image src="/static/close.png" @click="closeInfo" mode="widthFix" class="e_close"></image>
					<view class="e_tit">完善后可体验更多功能</view>
					<image v-if="user.avatar" :src="user.avatar" mode="" class="e_user"></image>
					<button v-else type="default" open-type="chooseAvatar" @chooseavatar="getAvatar">
						<image src="/static/user/info1.png" class="e_user"></image>
					</button>
					<view class="e_name">
						昵称<input type="nickname" class="weui-input" placeholder="请输入昵称" v-model="user.nickname" name="nickname" @blur="getnickname" />
					</view>
					<view class="e_tip">
						<image src="/static/user/info2.png" mode="widthFix"></image>
						<view>99%+用户选择使用微信头像和昵称便于订单发货和售后沟通</view>
					</view>
					<view class="submit_btn" @click="sumbitUsr">立即完善</view>
				</view>
			</view>
		</uni-popup>
		<uni-popup ref="referDialog" type="dialog">
			<uni-popup-dialog ref="inputClose" before-close="true" mode="input" title="推荐人ID" placeholder="请输入推荐人ID" @confirm="submitRefer" @close="closeReferDialog"></uni-popup-dialog>
		</uni-popup>
	</view>
</template>
<script>
	// import uniBadge from '@/components/uni-badge/uni-badge.vue'
	import {
		mapState
	} from 'vuex';
	export default {
		computed: {
			...mapState(["url"])
		},
		data() {
			return {
				levelCurrName: '会员',
				thawcredit: 0,
				info: {
					openSupplier: 0,
					discontsprice: '',
					lastVipTime: '',
					levelname: {},
					agentwaitnum: 0,
					member: {
						avatar: "",
						id: "",
						nickname: "",
					},
					referrer: {
						realname: ''
					},
					totalprice: ''
				},
				user: {
					avatar: '',
					nickname: ''
				},
				notice: [],
				gradeinfo:{
					type:0,
					num:0,
				},

				supplierInfo: {
					brownum: "0",
					ordernum: "0",
					salemoney: "0.00",
					sharenum: "0",
					shownum: 0,
					usemoney: "0.00",
					nochecknum: "",
					refundnum: "",
					finishnum: "",
					groupprice: "0.00",
				},
				supplierMain: [],
				partnerInfo: {
					all: 0,
					allmoney: 0,
					areanum: 0,
					curmoeny: 0,
					newnum: 0,
					partnernum: 0,
					price: 0,
					usemoney: 0,
					vipnum: 0,
					waitmoney: 0
				},
				salerInfo: {
					brownum: 0,
					nopaynum: 0,
					ordernum: 0,
					saleprice: 0,
					supmoney: 0,
					supnum: 0,
					usemoney: 0,
					waitchecknum: 0
				},
				areagentInfo: {
					brownum: 0,
					ordernum: 0,
					saleprice: 0,
					supnum: 0,
					usemoney: 0,
					waitchecknum: 0
				},
				waitOrder: [],
				reservationNum: 0,
				phoneMember: {
					member: []
				},
				isShowRefer: false,
			}
		},
		onShow() {
			this.getInfo();
			this.getNotice();
			this.getGradeInfo();
			this.getWaitOrder();
			this.getMobile();
			this.getthawcredit();
		},
		methods: {
			toMiCoin(){
				if(this.info.levelname[2]){
					this.$navTo('/pages/userservice/commissionMiCoin?level=2');
				}else{
					this.$navTo('/pages/userservice/commissionMiCoin');
				}
			},
			// 冻结米币
			getthawcredit(){
				this.$axios('Money/main', "POST", 'commission',{
					type: 2
				}).then(res => {
					if (res.data.code = 200) {
						this.thawcredit = res.data.data.thawcredit;
					}
				})
			},
			// 获取手机号
			getMobile(){
				var that = this;
				that.$axios('Info/member_info', "POST", 'member').then(res => {
					if (res.data.code = 200) {
						that.phoneMember = res.data.data;
					}
				})
			},
			// 绑定手机号
			getUserProfile(e) {
				let that = this;
				uni.login({
					provider: 'weixin',
					success: function(loginRes) {
						let obj = e.detail;
						obj.code1 = loginRes.code;
						that.$axios('bindmobile/bmobile', "POST", 'member', obj).then(res => {
							if (res.data.code == 200) {
								that.phoneMember.member.mobile = res.data.data.mobile;
							}
						})
					},
					fail() {
						that.$api.msg('绑定失败，请重试！')
					}
				})
			},
			closeInfo(){
				this.$refs.popup.close();
			},
			// 跳转对应订单页
			navOrder(id) {
				uni.setStorageSync('upOrderType', id);
				this.$navTo('/pages/index/order');
			},
			toBachixiao(){
				uni.navigateToMiniProgram({
				    appId: 'wx4cbf847f4c621150',
				    path: '', // 不填默认首页
				    extraData: {},
				    success(res) {
				            // 打开成功
				    }
				})
			},
			Popup() {  // 临时提醒
				uni.showModal({
					title: '提示',
					content: '数据分析正在开发中……',
					cancelText: "取消", // 取消按钮的文字  
					confirmText: "确认", // 确认按钮的文字  
					showCancel: true, // 是否显示取消按钮，默认为 true 显示
					confirmColor: '#f55850',
					cancelColor: '#39B54A',
					success: (res) => {
						if(res.confirm) {  
							////点击确之后执行的代码
						} else {  
							console.log('cancel') //点击取消之后执行的代码
						}  
					} 
				})
			},
			getAvatar(v) {
				let that = this;
				uni.showLoading({
					title: '请稍后',
					mask: true
				});
				let token = uni.getStorageSync('token');
				uni.uploadFile({
					url: that.url.upload,
					filePath: v.detail.avatarUrl,
					name: 'a',
					header: {
						token: token
					},
					formData: {
						'file': 'a'
					},
					success(res) {
						let data = JSON.parse(res.data);
						if (data.code == 200) {
							that.user.avatar = data.data.url;
						} else {
							uni.showToast({
								title: '获取失败请重试',
								icon: 'none'
							})
						}
					},
					fail() {
						uni.showToast({
							title: '获取失败请重试',
							icon: 'none'
						})
					},
					complete() {
						uni.hideLoading();
					}
				})
			},
			getnickname(e) {
				this.user.nickname = e.detail.value;
			},
			getNotice() {
				this.$axios('center/notice', "POST", 'member').then(res => {
					if (res.data.code == 200) {
						this.notice = res.data.data.join(' ');
					}
				})
			},
			sumbitUsr() {
				if ( this.user.nickname === '' || this.user.avatar == '') {
					this.$api.msg('请完善提交信息！');
					return;
				}
				this.$axios('info/setMemberAvatar', "POST", 'member', this.user).then(res => {
					if (res.data.code == 200) {
						this.$api.msg('提交成功！');
						this.getInfo();
						this.$refs.popup.close();
					}
				})
			},
			closeReferDialog(){
				this.isShowRefer = true;
				this.$refs.referDialog.close();
			},
			submitRefer(e){
				console.log(e)
				if(!e) return that.$api.msg('请输入推荐人ID');
				// return;
				this.$axios('login/bindmidnew','POST','member',{
					agentid: e
				}).then(res=>{
					if(res.data.code == 200){
						this.$api.msg('绑定成功');
						this.getInfo();
						this.$refs.referDialog.close();
					}
				})
			},
			getInfo() {
				this.$axios('Center/main', "POST", 'member').then(res => {
					if (res.data.code == 200) {
						this.info = res.data.data;
						// 完善信息弹框
						if (this.info.isopenavatar) this.$refs.popup.open();
						// 输入推荐人弹框
						// this.$refs.referDialog.open();
						// if((this.info.referrer.id==0||this.info.referrer.realname===null)&&!this.isShowRefer) this.$refs.referDialog.open();
						// 只显示最大等级名称
						for(let key in this.info.levelname){
							this.levelCurrName = this.info.levelname[key];
						}
						this.getPartner();
						if (this.info.levelname['2']) {//商家
							this.getSupplierInfo();
							this.getReservation();
							this.getSupplierMain();
						}
						// if (this.info.levelname['2'] || this.info.levelname['3'] || this.info.levelname['4'] || this.info.levelname['5'] || this.info.levelname['6'] || this.info.levelname['7'] || this.info.levelname['8'] || this.info.levelname['9']) this.getPartner();
						if (this.info.levelname['3']||this.info.levelname['5']) this.getSaler();//合伙人
						if (this.info.levelname['6']||this.info.levelname['9']) this.getAreagent();//运营中心
						if(this.info.levelname['3']){
							uni.setStorageSync('levelname', 3);
						}else{
							uni.setStorageSync('levelname', 0);
						}
						uni.setStorageSync('level',this.info.levelname);
					}
				})
			},
			getWaitOrder(){
				this.$axios('Lists/waitOrder','POST','order').then(res=>{
					if(res.data.code == 200){
						this.waitOrder = res.data.data;
					}
				})
			},
			getSupplierMain(){
				this.$axios('info/main', "POST", 'supplier').then(res => {
					if (res.data.code == 200) {
						this.supplierMain = res.data.data;
					}
				})
			},
			getSupplierInfo() {
				this.$axios('center/getSupplier', "POST", 'member').then(res => {
					if (res.data.code == 200) {
						this.supplierInfo = res.data.data;
					}
				})
			},
			getReservation(){
				this.$axios('reservation/waiteOrder','POST','member').then(res=>{
					if(res.data.code == 200){
						this.reservationNum = res.data.data.waitenum;
					}
				})
			},
			getGradeInfo() {
				this.$axios('center/getGradeInfo', "POST", 'member').then(res => {
					if (res.data.code == 200) {
						this.gradeinfo = res.data.data;
					}
				})
			},
			
			getPartner() {
				this.$axios('center/getPartner', "POST", 'member').then(res => {
					if (res.data.code == 200) {
						this.partnerInfo = res.data.data;
					}
				})
			},
			getSaler() {
				this.$axios('center/getSaler', "POST", 'member').then(res => {
					if (res.data.code == 200) {
						this.salerInfo = res.data.data;
					}
				})
			},
			getAreagent() {
				this.$axios('center/getAreagent', "POST", 'member').then(res => {
					if (res.data.code == 200) {
						this.areagentInfo = res.data.data;
					}
				})
			},
			openPhone(num1, num2){
				uni.showActionSheet({
					itemList: ['招商经理'+num1],
					success: res=> {
						if(res.tapIndex==0){
							this.phoneCall(num1)
						}
					},
				});
			},
			phoneCall(v) {
				uni.makePhoneCall({
					phoneNumber: v
				})
			},
			openKefu() {
				let that = this;
				wx.openCustomerServiceChat({
					extInfo: {
						url: 'https://work.weixin.qq.com/kfid/kfc85558bf452926a1b',
					},
					corpId: 'ww818270697fafba52',
					fail(res) {
						that.$api.msg('打开失败请重试！');
					}
				})
			},
			sao(){
				uni.scanCode({
					success:res=> {
						uni.hideLoading();
						this.$navTo(res.data.data);
					},
					fail(error) {
						that.$api.msg('扫码失败')
					}
				})
			},
			navTo(url, type) {
				if (type && this.info.ismerch != 1) {
					this.$navTo('/pages/userservice/settled');
					return;
				}
				let that = this;
				if (url == 'sao') {   //扫一扫
					uni.scanCode({
						success: function(res) {
							let url = res.result;
							if (res.result.indexOf('https://h5.jinghushi.com/orderpay') != -1) {
								url = url.replace('https://h5.jinghushi.com/orderpay',
									'/pages/business/accounts');
							}
							that.$navTo(url);
						},
						fail(error) {
							that.$api.msg('扫码失败')
						}
					})
				} else {
					uni.navigateTo({
						url
					})
				}
			},
			// 退出登录 切换账号
			logout(){
				var that = this;
				uni.showModal({
					content: '确定要退出登录，切换其它账号吗？',
					success: (e) => {
						if (e.confirm) {
							that.$axios('logout/doout', "POST", 'member').then(res => {
								if (res.data.code == 200) {
									var Ver = uni.getStorageSync('ver');
									var Lng = uni.getStorageSync('x');
									var Lat = uni.getStorageSync('y');
									uni.clearStorage();
									uni.setStorageSync('ver', Ver);
									uni.setStorageSync('Jh_recotabshops', 1)
									uni.setStorageSync('x',Lng);
									uni.setStorageSync('y',Lat);
									uni.setStorageSync('yinsi', 1);
									uni.reLaunch({
										url: '/pages/public/login'
									})
								}
							}, (error) => {
				
							})
						}
					}
				});
			},
		}
	}
</script>
<style lang='scss'>
	page {
		background-color: #f2f2f2;
		color: $font-color-dark;
		font-size: 26upx;
	}

	.wp {
		padding-bottom: 60rpx;
		background: #FBF8FE;
	}

	.user-section {
		color: #fff;
		padding-top: 14upx;
		position: relative;
		padding-bottom: 80rpx;
		.bg {
			position: absolute;
			left: 0;
			top: -4upx;
			width: 100%;
			height: 100%;
			background-image: linear-gradient(#c902e2,#6600fb);
			background: linear-gradient( 180deg, #4B05A7 0%, #8615E1 40%, #FBF8FE 100%);
		}

		.member {
			display: flex;
			align-items: center;
			font-size: 32rpx;
			padding: 0 30rpx;
			position: relative;
			z-index: 90;

			.logo {
				border-radius: 50%;
				width: 138rpx;
				height: 138rpx;
				border: 4rpx solid #FFFFFF;
			}

			.m_info {
				flex: 1;
				line-height: 40upx;
				padding-left: 20upx;
				font-size: 24rpx;
				.name{
					display: flex;
					font-size: 32rpx;
					align-items: center;
					margin-bottom: 4rpx;
				}
				.biao{
					/* width: 92rpx; */
					height: 34rpx;
					background: #000;
					border-radius: 8rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-size: 20rpx;
					margin-left: 20rpx;
					padding: 0 8rpx;
					image{
						width: 32rpx;
						margin-right: 5rpx;
					}
					text{
						color: #F3DD91;
					}
				}
				.vip_level{
					position: relative;
					padding-left: 56rpx;
					margin-left: 20rpx;
					image{
						position: absolute;
						left: 0;
						top: 0;
						width: 122rpx;
						height: 32rpx;
						display: block;
					}
					view{
						color: #FFF4CD;
						position: relative;
						font-size: 24rpx;
						line-height: 32rpx;
					}
				}
				.m_id{
					display: flex;
					align-items: center;
					.reco_img{
						width: 30rpx;
						height: 28rpx;
						margin-left: 15rpx;
					}
				}
				.m_tag{
					display: flex;
					margin-top: 8rpx;
					.item{
						background: #000;
						border-radius: 8rpx;
						font-size: 20rpx;
						color: #F3DD91;
						text-align: center;
						padding: 0 10rpx;
						margin-right: 12rpx;
					}
				}
			}
			.kefu{
				position: absolute;
				width: 198rpx;
				right: 0;
			}
		}
		.savings{
			display: flex;
			align-items: center;
			justify-content: space-evenly;
			position: relative;
			font-size: 24rpx;
			margin-top: 26rpx;
			.sav_item{
				text-align: center;
				.sav_num{
					font-size: 34rpx;
					margin-bottom: 6rpx;
				}
			}
			.sav_line{
				width: 2rpx;
				height: 46rpx;
				border: 2rpx solid #FFFFFF;
				opacity: 0.3;
			}
		}
		.myorder{
			position: relative;
			background: #FFFFFF;
			border-radius: 12rpx;
			padding: 22rpx;
			margin: 0 30rpx;
			margin-top: 20rpx;
			.top{
				display: flex;
				justify-content: space-between;
				font-size: 32rpx;
				color: #333333;
				margin-bottom: 34rpx;
				align-items: flex-end;
				font-weight: 600;
				.my_more{
					font-size: 24rpx;
					color: #999999;
					font-weight: 400;
				}
			}
			.my_list{
				display: flex;
				justify-content: space-around;
				font-size: 24rpx;
				color: #333333;
				text-align: center;
				.my_item{
					.my_img{
						width: 44rpx;
						height: 70rpx;
						display: flex;
						align-items: center;
						margin: 0 auto;
						position: relative;
						.round{
							background: #ff233d;
							width: 20rpx;
							height: 20rpx;
							border-radius: 50%;
							position: absolute;
							right: -16rpx;
							top: 4rpx;
						}
						image{
							width: 100%;
						}
					}
				}
			}
		}
		
	}
	.vip_open{
		width: 694rpx;
		height: 132rpx;
		background-size: 100% 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 30rpx;
		position: relative;
		margin: 36rpx auto -16rpx;
		.vip_open_left{
			flex: 1;
			color: #B9B7A7;
			font-size: 24rpx;
			image{
				/* width: 156rpx; */
				height: 40rpx;
				margin-bottom: 6rpx;
			}
		}
		.vip_open_btn{
			width: 176rpx;
			line-height: 62rpx;
			background: linear-gradient( 90deg, #FFE9B7 0%, #FBE3A0 100%);
			border-radius: 31rpx;
			color: #412116;
			font-weight: 600;
			text-align: center;
		}
	}
	.bind_phone{
		display: flex;
	    align-items: center;
	    position: relative;
	    padding: 10rpx 20rpx;
	    justify-content: space-between;
	    color: #333;
	    margin: 20rpx 30rpx;
	    margin-bottom: -10rpx;
	    font-size: 24rpx;
	    background: #fff;
	    border-radius: 12rpx;
		button{
			font-size: 24rpx;
			background: none;
			margin-left: 10rpx;
			color: #7f6545;
			padding: 0;
			padding: 0;
			margin: 0;
			white-space: nowrap;
			text-decoration: underline;
			&::after{
				border: 0;
			}
		}
	}
	.notice_bar {
		margin: 0 30rpx;
		position: relative;
		border: 4rpx solid #EFDC8F;
		border-radius: 20rpx;
		margin-top: -50rpx;
		overflow: hidden;
		background: #F8F1DA;
		height: 80rpx;
		line-height: 80rpx;
		image{
			width: 32rpx;
			position: absolute;
			left: 20rpx;
			top: 18rpx;
		}
		.no_bar{
			width: calc(100% - 50rpx);
			float: right;
		}
	}
	.c_body {
		position: relative;
		padding: 0 30rpx;
		.title {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-weight: bold;
			padding-top: 30rpx;
			.name {
				color: #333;
				font-size: 30upx;
			}
		
			.more {
				color: #7f6545;
				letter-spacing: 1px;
				margin-right: 3upx;
			}
		}
		.my_menu {
			background: #fff;
			border-radius: 30upx;
			margin: 20rpx 0 0;
			padding: 0 20upx 30upx;
			.my_list,
			.shop_list {
				display: flex;
				align-items: center;
				flex-wrap: wrap;
				.list_tit{
					width: 100%;
					margin-top: 30rpx;
					font-size: 28rpx;
					font-weight: bold;
					color: #000;
					border-bottom: 1rpx solid #d2cece;
					padding-bottom: 6rpx;
				}
				.list_item {
					text-align: center;
					padding-top: 30upx;
					font-size: 0;
					width: 25%;
					position: relative;
					.user_img{
						width: 50rpx;
						position: relative;
						margin: 0 auto;
						height: 80rpx;
						display: flex;
						align-items: center;
						justify-content: center;
						image{
							width: 100%;
							margin: 0;
						}
					}
					.list_tip{
						position: absolute;
						left: 44rpx;
						top: 0;
						color: #fff;
						font-size: 16rpx;
						/* border: 1rpx solid #BB2FF2; */
						background: linear-gradient( 90deg, #BB2FF2 0%, #8615E1 100%);
						padding: 4rpx 8rpx;
						border-radius: 14rpx 14rpx 14rpx 2rpx;
						white-space: nowrap;
					}
					image {
						margin: 10upx 0;
						height: 50upx;
						width: 50upx;
					}

					.name {
						font-size: 26upx;
						
					}
					.round{
						background: #ff233d;
						width: 20rpx;
						height: 20rpx;
						border-radius: 50%;
						position: absolute;
						right: -16rpx;
						top: 4rpx;
					}
					.number {
						color: #000;
						height: 70upx;
						font-size: 30upx;
						font-weight: bold;
					
						view:nth-of-type(2) {
							color: #666;
							font-size: 20upx;
						}
					}
					.color_number {
						color: #8405dc;
					}
				}
			}

			.shop_list {
				.list_item {
					width: 20%;
					
					.number {
						color: #000;
						height: 70upx;
						font-size: 30upx;
						font-weight: bold;

						view:nth-of-type(2) {
							color: #666;
							font-size: 20upx;
						}
					}

					.color_number {
						color: #8405dc;
					}
				}
			}
		}
	}

	.empower {
		.e_bg{
			width: 514rpx;
			height: 206rpx;
			margin: 0 auto;
			display: block
		}
		.e_info{
			width: 568rpx;
			height: 652rpx;
			background: #FBF8FE;
			border-radius: 12rpx;
			color: #333333;
			margin-top: -44rpx;
			padding: 40rpx 20rpx;
			position: relative;
			.e_close{
				width: 30rpx;
				position: absolute;
				right: 40rpx;
				top: 50rpx;
			}
			.e_tit{
				font-size: 32rpx;
				font-weight: 600;
				text-align: center;
			}
		}
		.e_name{
			background: #FFFFFF;
			border-radius: 12rpx;
			height: 86rpx;
			display: flex;
			align-items: center;
			padding: 0 30rpx;
			input {
				font-size: 26rpx;
				height: 86rpx;
				padding-left: 30rpx;
			}
		}
		.e_user{
			width: 114rpx;
			height: 114rpx;
			display: block;
			margin: 40rpx auto;
			border-radius: 20upx;
			height: 150upx;
			width: 150upx;
		}
		.e_tip{
			display: flex;
			justify-content: space-between;
			padding: 20rpx 30rpx;
			font-size: 24rpx;
			color: #999999;
			image{
				width: 62rpx;
				margin-right: 20rpx;
			}
			view{
				flex: 1;
			}
		}
		button {
			font-size: 30upx;
			background: #FBF8FE;
			&::after{
				border: 0;
			}
		}
		.submit_btn{
			width: 332rpx;
			height: 72rpx;
			background: #49C265;
			border-radius: 42rpx;
			color: #FFFFFF;
			line-height: 72rpx;
			text-align: center;
			margin: 30rpx auto;
		}
	}
</style>